package com.tyylab.kestrel.framework.example.web.provider;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SpringDocConfig {
    // swagger: http://localhost:10001/swagger-ui/swagger-ui/index.html
    // openapi: http://localhost:10001/v3/api-docs
    @Bean
    public OpenAPI customSpringDoc() {
        return new OpenAPI()
                .info(new Info()
                        .title("User API")
                        .version("1.0.0")
                        .description("This is the api for user management.")
                );
    }
}

